// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Resource from 'vue-resource'
import store from './store' // 状态管理
import axios from 'axios' // 处理http请求

import VueAwesomeSwiper from 'vue-awesome-swiper'
//import IScrollView from 'vue-iscroll-view'
//import IScroll from 'iscroll'
import VueLazyLoad from 'vue-lazyload'

// 路由跳转
Vue.prototype.$gotoRoute = function(index) {
	this.$router.push(index)
}

Vue.use(Resource)
Vue.use(VueAwesomeSwiper)
//Vue.use(IScrollView, IScroll)
Vue.use(VueLazyLoad,{
    error:'',
    loading:''
})

Vue.prototype.$axios = axios
Vue.config.productionTip = false

new Vue({
	el: '#app',
	router,
    store,
	template: '<App/>',
	components: {
		App
	}
})